//
//  ZJGuideCell.m
//  Lottery
//
//  Created by ZJ on 2018/8/16.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import "ZJGuideCell.h"

@interface ZJGuideCell ()

@property (nonatomic, weak) UIImageView *imageView;

@end

@implementation ZJGuideCell

// 懒加载创建 imageView
- (UIImageView *)imageView {
    if (_imageView == nil) {
        UIImageView *imageView = [[UIImageView alloc] init];
        
        imageView.frame = kScreenSize;
        
        [self addSubview:imageView];
        
        _imageView = imageView;
    }
    
    return _imageView;
}

- (void)setImage:(UIImage *)image {
    _image = image;
    
    // 把数据放在控件上
    self.imageView.image = image;
}

@end
